package com.ruicar.afs.cloud.basic.common.condition;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruicar.afs.cloud.common.modules.contract.enums.ChannelTypeEnum;
import com.ruicar.afs.cloud.common.modules.contract.enums.ContractStatusEnum;
import com.ruicar.afs.cloud.common.modules.contract.enums.PersonRoleTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 新增申请弹框response参数
 */
@Data
public class ContractBasicListVO {
    @ApiModelProperty("合同号")
    private String contractNo;

    @ApiModelProperty("证件号码")
    private String certNo;

    @ApiModelProperty("联系方式")
    private String phone;

    @ApiModelProperty("申请编号")
    private String applyNo;

    @ApiModelProperty("客户名称")
    private String custName;

    @ApiModelProperty("案件角色")
    private PersonRoleTypeEnum custRole;

    @ApiModelProperty("渠道类型")
    private String channelType;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    @ApiModelProperty("合同当前状态")
    private ContractStatusEnum contractStatus;

}

